<template>
    <user-group v-model="group_id" @change="changeValue" placeholder="请选择添加的组" :disabled-list="hasList" ></user-group>
</template>

<script>
import UserGroup from '../../../assets/component/field/user-group.vue';
export default {
    dialog:{
        width:300,
        title:'添加用户组',
    },
    components: {
        UserGroup
    },
    data(){
        return {
            group_id:'',
            title:'',
        }
    },
    props:{
        hasList:{
            type:Array,
            default:[]
        },
    },
    methods:{
        dialogOk(){
            this.dialog.callback({group_id:this.group_id,title:this.title});
            return ;
        },
        changeValue(val,title){
            this.title = title;
        }
    }
}
</script>